﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NCHQMES
{
    /// <summary>
    /// MES设备信息设置
    /// </summary>
    [Serializable]
    public class MachineInfo
    {
        public MachineInfo()
        {
            EQSN = "";
            SoftwareName = "";
            IP = "";
            HostName = "";
            BU = "";
            Dept = "";
            Line = "";
            Station = "";
            User = "";
            MesUrl = "";
            HeartbeatTime = 0;
            TimeOut = 0;
            SCADA_FormateDemo = "";
            SCADA_Startup = "";
            SCADA_StatusChange = "";
            SCADA_Heartbeat = "";
            SCADA_Warning = "";
            SCADA_ScrewWorkData = "";
            H_GUID = "";
            H_SRC_SYS = "";
            H_TOKEN = "";
            chkHearbeat = false;
        }

        #region 设备类型

        /// <summary>
        /// 设备编号/型号
        /// </summary>
        public string EQSN = "";

        /// <summary>
        /// 设备软件名称
        /// </summary>
        public string SoftwareName = "";

        /// <summary>
        /// 设备IP
        /// </summary>
        public string IP = "";

        /// <summary>
        /// 设备主机名
        /// </summary>
        public string HostName = "";

        #endregion 设备类型

        #region MES信息

        /// <summary>
        /// 事业部
        /// </summary>
        public string BU = "";

        /// <summary>
        /// 部门
        /// </summary>
        public string Dept = "";

        /// <summary>
        /// 线别
        /// </summary>
        public string Line = "";

        /// <summary>
        /// 站位
        /// </summary>
        public string Station = "";

        /// <summary>
        /// 作业员
        /// </summary>
        public string User = "";

        /// <summary>
        /// MES地址
        /// </summary>
        public string MesUrl = "";

        /// <summary>
        /// 心跳时间
        /// </summary>
        public int HeartbeatTime = 0;

        /// <summary>
        /// 访问超时
        /// </summary>
        public int TimeOut = 0;

        /// <summary>
        /// 测试接口
        /// </summary>
        public string SCADA_FormateDemo = "";

        /// <summary>
        /// 软件开启接口
        /// </summary>
        public string SCADA_Startup = "";

        /// <summary>
        /// 设备状态变更接口
        /// </summary>
        public string SCADA_StatusChange = "";

        /// <summary>
        /// 心跳接口
        /// </summary>
        public string SCADA_Heartbeat = "";

        /// <summary>
        /// 报警产生和消除接口
        /// </summary>
        public string SCADA_Warning = "";

        /// <summary>
        /// 螺丝机工作接口
        /// </summary>
        public string SCADA_ScrewWorkData = "";

        /// <summary>
        /// 填实际的GUID值，全局唯一标识符
        /// </summary>
        public string H_GUID = "";

        /// <summary>
        /// 预留字段，固定放空
        /// </summary>
        public string H_SRC_SYS = "";

        /// <summary>
        ///固定Token
        /// </summary>
        public string H_TOKEN = "";

        /// <summary>
        /// 启用心跳
        /// </summary>

        public bool chkHearbeat = false;

        #endregion MES信息
    }
}